package sgi.message;

import sgi.client.SGIUserAccountMenuController;

/**sets query for charging customer for purchase*/
public class MessageCharge extends Message {
	

	private static final long serialVersionUID = 1L;
	private int amount;

	public MessageCharge(int amount) {
		super("select balance from customers where username = '"+SGIUserAccountMenuController.create(null).getUser().getUsername()+"'");
		this.setAmount(amount);
	}

	public int getAmount() {
		return amount;
	}


	public void setAmount(int amount) {
		this.amount = amount;
	}

}
